<?php
$config['enabled_auto_router'] = true;
$config['error_handler'] = 'apf_error_handler';
$config['debug_allow_patterns'] = array(
        '/127\.0\.0\.1/',
        '/^192\.168\.181\./',
        '/^192\.168\.180\./',
        '/^192\.168\.1\./',
        '/^192\.168\.2\./',
        '/^192\.168\.10\./',
        '/^10\.0\.0\./',
        '/^222\.66\.14\.14$/',
        '/^221\.133\.228\.74$/',
        '/^58\.246\.59\.106$/'
);
//LDAP 登录配置
$config['ldap_host'] = '192.168.1.98';
$config['ldap_port'] = '389';

$config['common_domain'] = "http://oa-common.aifang.com";
$config['base_domain'] = "http://oa.dev.aifang.com";
$config['oa_manage'] = array('SHD823');//默认拥有权限管理的员工
$config['oa_meal'] = 300;//每月餐补
//APF统一
#$config['default'] = Const_MultiCity::CITY_ID_SHANGHAI;

//APF统一
apf_require_class('Const_MultiCity');
$config['oa_cities'] = array (
    Const_MultiCity::CITY_ID_SHANGHAI=>'上海',
    Const_MultiCity::CITY_ID_SANYA=>'三亚',
    Const_MultiCity::CITY_ID_SHENZHEN=>'深圳',
    Const_MultiCity::CITY_ID_GUANGZHOU=>'广州',
    Const_MultiCity::CITY_ID_CHONGQING=>'重庆',
    Const_MultiCity::CITY_ID_CHENGDU=>'成都',
    Const_MultiCity::CITY_ID_NANJING=>'南京',
    Const_MultiCity::CITY_ID_QINGDAO=>'青岛',
    Const_MultiCity::CITY_ID_BEIJING=>'北京',
    Const_MultiCity::CITY_ID_HANGZHOU=>'杭州',
    Const_MultiCity::CITY_ID_HEFEI=>'合肥',
    Const_MultiCity::CITY_ID_SHIJIAZHUANG=>'石家庄',
    Const_MultiCity::CITY_ID_SUZHOU=>'苏州',
    Const_MultiCity::CITY_ID_TIANJIN=>'天津',
    Const_MultiCity::CITY_ID_WUXI=>'无锡',
    Const_MultiCity::CITY_ID_ZHENGZHOU=>'郑州',
    Const_MultiCity::CITY_ID_HUIZHOU=>'惠州',
    Const_MultiCity::CITY_ID_FOSHAN=>'佛山',
    Const_MultiCity::CITY_ID_WUHAN=>'武汉',
    Const_MultiCity::CITY_ID_NANCHANG => '南昌',
    Const_MultiCity::CITY_ID_DALIAN=>'大连',
    Const_MultiCity::CITY_ID_JINAN=>'济南',
    Const_MultiCity::CITY_ID_SHENYANG=>'沈阳',
    Const_MultiCity::CITY_ID_KUNSHAN=>'昆山',
    Const_MultiCity::CITY_ID_CHANGCHUN => '长春',
    Const_MultiCity::CITY_ID_CHANGSHA=>'长沙',
    Const_MultiCity::CITY_ID_XIAMEN => '厦门',
    Const_MultiCity::CITY_ID_XIAN=>'西安',
    Const_MultiCity::CITY_ID_KUNMING=>'昆明',
    Const_MultiCity::CITY_ID_FUZHOU=>'福州',
    Const_MultiCity::CITY_ID_NINGBO=>'宁波',
    Const_MultiCity::CITY_ID_DONGGUAN=>'东莞',
    Const_MultiCity::CITY_ID_TAIYUAN=>'太原',
);

//权限配置
$config['oa_permiss'] = array(
    '审批' => array(
        '/unaudit/',//已审批
    ),
    '考勤报告' => array(
        '/userdetail/',//考勤明细
        '/reportexp/'//考勤报表导出
    ),
);



    //考勤关键时间点配置
$config['time'] = array
(
    'later'=>'910',
    'am_absentee'=>'930',
    'pm_absentee'=>'1431',
    'leave_early'=>'1731',
    'off_work'=>'1759'
);
$config['code'] = array
(
    'AM_CODE_COMMON'=>1,
    'AM_CODE_LATER'=>3,
    'AM_CODE_ABSENTEE'=>5,
    'PM_CODE_COMMON'=>2,
    'PM_CODE_EARLY'=>4,
    'PM_CODE_ABSENTEE'=>6,
);
//考勤关键时间段点配置
/*
$config['status'] = array(

    //am 时间配置从小到大
    'am'=>array(
            $config['code']['AM_CODE_COMMON']=>$config['time']['later'],
            $config['code']['AM_CODE_LATER']=>$config['time']['am_absentee'],
    ),

    //pm 时间配置从大到小
    'pm'=>array(
            $config['code']['PM_CODE_COMMON']=>$config['time']['off_work'],
            $config['code']['PM_CODE_EARLY']=>$config['time']['leave_early'],
    ),

);*/
//通用打卡状态规则
$config['0_default'] = array(
    'am'=>array(
            0=>array('start'=>0,'end'=>911,'status'=>5),//正常
            1=>array('start'=>910,'end'=>931,'status'=>1)//迟到
     ),
    'pm'=>array(
            0=>array('start'=>1759,'end'=>2359,'status'=>6), //正常
            1=>array('start'=>1729,'end'=>1800,'status'=>2),//早退

     ),
     'am_q'=>3,//上午缺勤
     'pm_q'=>4//下午缺勤
);
/*
上午:迟到1 缺勤3 正常5
下午:早退2 缺勤4 正常6
*/
$config['kq_status']= array(
    102=>'迟到 早退',
    104=>'迟到 下午缺勤',
    106=>'迟到',
    302=>'上午缺勤  早退',
    304=>'缺勤',
    306=>'上午缺勤',
    502=>'早退',
    504=>'下午缺勤',
    506=>'正常',
);
/*
1:迟到 ,2: 早退, 3:缺勤
*/
$config['kq_status_ext']= array(
    102=>'1',
    104=>'1',
    106=>'1',
    302=>'2',
    304=>'3',
    306=>'3',
    502=>'2',
    504=>'3',
    506=>'0',
);

$config['datatype']=1;//0|1 1使用新的数据接口
if(!empty($_GET['cls']) && !$config['datatype']){
    $config['datatype']=1;
}

/**
 * 用户特殊版别配置
 */
$config['user_type'] = array(
        1=>'特殊班别',
        );

apf_require_class('Const_LeaveType');
$config['leave_type'] = array (
        Const_LeaveType::LEAVE_TYPE_CHIDAO       => '迟到',
        Const_LeaveType::LEAVE_TYPE_ZAOTUI       => '早退',
        Const_LeaveType::LEAVE_TYPE_GONGCHU      => '公出',
        Const_LeaveType::LEAVE_TYPE_CHUCHA       => '出差',
        Const_LeaveType::LEAVE_TYPE_SHIJIA       => '事假',
        Const_LeaveType::LEAVE_TYPE_BINGJIA      => '病假',
        Const_LeaveType::LEAVE_TYPE_NIANJIA      => '年假',
        Const_LeaveType::LEAVE_TYPE_SANGJIA      => '丧假',
        Const_LeaveType::LEAVE_TYPE_HUNJIA       => '婚假',
        Const_LeaveType::LEAVE_TYPE_CHANJIAN     => '产检',
        Const_LeaveType::LEAVE_TYPE_CHANQIANJIA  => '产前假',
        Const_LeaveType::LEAVE_TYPE_CHANJIA      => '产假',
        Const_LeaveType::LEAVE_TYPE_PEICHANGJIA  => '陪产假',
        Const_LeaveType::LEAVE_TYPE_QUEQIN       => '缺勤',
);
$config['leave_status']=array(
        Const_LeaveType::LEAVE_STATUS_AUDIT      => '未审核',
        Const_LeaveType::LEAVE_STATUS_PASS       => '已批准',
        Const_LeaveType::LEAVE_STATUS_OVERRULE   => '已驳回',
        Const_LeaveType::LEAVE_STATUS_CANCEL     => '已撤销',
);
$config['daily_status'] = array(Const_LeaveType::LEAVE_TYPE_CHIDAO,Const_LeaveType::LEAVE_TYPE_ZAOTUI,Const_LeaveType::LEAVE_TYPE_CHUCHA);

//职位根position_id
$config['root_position_id'] = "5D44EAE3-0A5D-4318-A574-E99F57B375FC";
$config['root_em_id'] = "225D83D7-C406-4017-B6A1-E8933C9995CB";
//开通打卡机的城市
$config['city_card'] = array(
        11=>'上海',
        14=>'北京',
        15=>'成都',
        17=>'天津',
        21=>'大连',
        13=>'深圳',
        20=>'重庆',
        );
//销售部id
$config['sale_department'] = array(
        /*
        513=>"租房销售部",
522=>"商业地产销售部",
527=>"二手房销售运营中心",
530=>"二手房销售部",
532=>"租房销售部",
536=>"新房销售部",
//542=>"新房销售管理部",
//544=>"二手房销售管理部",
555=>"新房销售部",
556=>"二手房销售部",
560=>"新房销售运营中心",
561=>"租房销售部",
563=>"商业地产销售部",
564=>"商业地产销售部",
567=>"二手房销售部",
569=>"新房销售部",
573=>"商业地产销售部",
574=>"新房销售部",
576=>"新房销售运营中心",
577=>"商业地产销售部",
580=>"二手房销售部",
584=>"新房销售部",
588=>"商业地产销售部",
589=>"新房销售运营中心",
592=>"二手房销售部",
594=>"新房销售部",
599=>"商业地产销售部",
600=>"新房销售运营中心",
602=>"二手房销售部",
608=>"租房销售部",
610=>"新房销售部",
611=>"新房销售运营中心",
612=>"商业地产销售部",
614=>"二手房销售部",
618=>"新房销售部",
619=>"商业地产销售部",
621=>"租房销售部",
622=>"新房销售运营中心",
623=>"二手房销售部",
624=>"新房销售部",
626=>"新房销售运营中心",
627=>"二手房销售部",
628=>"新房销售部",
632=>"新房销售运营中心",
635=>"二手房销售部",
636=>"新房销售部",
639=>"新房销售运营中心",
642=>"二手房销售部",
643=>"新房销售部",
647=>"新房销售运营中心",
648=>"商业地产销售部",
650=>"二手房销售部",
653=>"新房销售部",
655=>"商业地产销售部",
656=>"新房销售运营中心",
659=>"二手房销售部",
663=>"新房销售部",
666=>"二手房销售部",
669=>"二手房销售部",
670=>"新房销售部",
673=>"二手房销售部",
674=>"新房销售部",
678=>"二手房销售部",
680=>"新房销售部",
682=>"新房销售运营中心",
685=>"二手房销售部",
688=>"新房销售部",
692=>"二手房销售部",
693=>"新房销售部",
695=>"新房销售运营中心",
698=>"二手房销售部",
700=>"二手房销售部",
703=>"二手房销售部",
705=>"新房销售部",
708=>"二手房销售部",
711=>"二手房销售部",
713=>"二手房销售部",
716=>"二手房销售部",
717=>"新房销售部",
719=>"新房销售运营中心",
721=>"二手房销售部",
723=>"二手房销售部",
725=>"二手房销售部",
726=>"新房销售部",
729=>"二手房销售部",
731=>"新房销售部",
734=>"新房销售运营中心",
736=>"二手房销售部",
737=>"二手房销售部",
738=>"新房销售部",
741=>"新房销售运营中心",
751=>"二手房销售部",
752=>"商业地产销售部",
757=>"租房销售部",
758=>"商业地产销售部",
759=>"租房销售部",
760=>"商业地产销售部",
761=>"租房销售部",
762=>"商业地产销售部",
763=>"租房销售部",
764=>"商业地产销售部",
765=>"商业地产销售部",
766=>"租房销售部",
768=>"新房销售部",
769=>"商业地产销售部",*/
11=>'二手房销售部',
17=>'新房销售部',
22=>'租房销售部',
26=>'商业地产销售部',
34=>'新房销售部',
37=>'二手房销售部',
38=>'新房销售部',
40=>'租房销售部',
41=>'商业地产销售部',
44=>'二手房销售部',
45=>'新房销售部',
47=>'商业地产销售部',
50=>'二手房销售部',
51=>'新房销售部',
53=>'商业地产销售部',
56=>'二手房销售部',
57=>'新房销售部',
59=>'租房销售部',
60=>'商业地产销售部',
63=>'二手房销售部',
65=>'新房销售部',
69=>'二手房销售部',
70=>'新房销售部',
73=>'二手房销售部',
74=>'新房销售部',
76=>'租房销售部',
77=>'商业地产销售部',
80=>'二手房销售部',
81=>'新房销售部',
82=>'租房销售部',
85=>'二手房销售部',
86=>'新房销售部',
90=>'二手房销售部',
93=>'二手房销售部',
94=>'新房销售部',
98=>'二手房销售部',
99=>'新房销售部',
101=>'二手房销售部',
102=>'新房销售部',
105=>'二手房销售部',
106=>'新房销售部',
107=>'新房销售部',
110=>'二手房销售部',
111=>'新房销售部',
113=>'二手房销售部',
114=>'新房销售部',
117=>'二手房销售部',
120=>'二手房销售部',
121=>'新房销售部',
124=>'二手房销售部',
125=>'新房销售部',
127=>'二手房销售部',
129=>'二手房销售部',
130=>'新房销售部',
133=>'二手房销售部',
136=>'二手房销售部',
137=>'新房销售部',
140=>'二手房销售部',
144=>'二手房销售部',
145=>'新房销售部',
148=>'二手房销售部',
150=>'二手房销售部',
151=>'新房销售部',
154=>'二手房销售部',
155=>'二手房销售部',
157=>'二手房销售部'
);
?>